package com.aimee.test;

import com.aimee.dao.ExamPaperDAO;
import com.aimee.entity.ExamPaper;

import java.sql.SQLException;
import java.util.List;

public class ExamPaperDAOtest {
    public static void main(String[] args) throws SQLException {
        ExamPaperDAO dao=new ExamPaperDAO();
//        List list= dao.allexam(1);
//        List list=dao.findexampaperBycouseid(10002,1);
//        System.out.println(list);
/*        List list=dao.findallcourse();
        System.out.println(list);*/
//        List<ExamPaper> exampaper= dao.findexamidbyname("试卷02");
//        System.out.println(exampaper.get(0).getExampaper_id());
        ExamPaper exam = null;

        exam.setExampaper_name("小测2");
        exam.setExampaper_desc("小测10004");
        exam.setExampaper_score(120);
        exam.setExampaper_type(2);
        exam.setCourse_id(10002);
        int n=dao.updateexampaper(2,exam);
        System.out.println(n);
    }
}
